home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Magazine / SoundLab / Studio16add / scripts / ConvertRAW2Studio < prev    next >
Encoding:
AmigaDOS Script File  |  1997-11-11  |  1.2 KB  |  44 lines

  1. .key PATTERN/A,DESTDIR/A,8BIT/S,INTEL/S
  2. .bra {
  3. .ket }
  4.  
  5. ; This script can convert many RAW files to Studio 16 files based
  6. ; on pattern matching.
  7. ;
  8. ; $VER: ConvertRAW2Studio 1.0 (11.11.97)
  9. ; By Kenneth "Kenny" Nilsen (kenny@bgnett.no)
  10. ;
  11. ; USAGE: ConvertRAW2Studio <pattern> <destdir/> [8BIT] [INTEL]
  12. ;
  13. ; NOTE: The commands must be in the command search path. To be safe
  14. ; copy the commands in C: or add the path where you keep the commands to
  15. ; the global search path (startup-sequence: path <path> ADD).
  16.  
  17. ;-- convert files
  18.  
  19. if {8BIT}
  20.     if {INTEL}
  21.         list {pattern} files lformat="echo *"Processing file '%N'...*"*nRAW2STUDIO %P%N {DESTDIR}%M.MONO -8 -i" >t:tmp.16
  22.         skip Ok
  23.         endif
  24.     list {pattern} files lformat="echo *"Processing file '%N'...*"*nRAW2STUDIO %P%N {DESTDIR}%M.MONO -8" >t:tmp.16
  25. else
  26.     if {INTEL}    
  27.         list {pattern} files lformat="echo *"Processing file '%N'...*"*nRAW2STUDIO %P%N {DESTDIR}%M.MONO -i" >t:tmp.16
  28.         skip Ok
  29.         endif
  30.     list {pattern} files lformat="echo *"Processing file '%N'...*"*nRAW2STUDIO %P%N {DESTDIR}%M.MONO" >t:tmp.16
  31. endif
  32.  
  33. lab Ok
  34.  
  35. echo "Converting RAW file(s) to Studio 16 files.. Please wait!"
  36.  
  37. execute t:tmp.16
  38.  
  39. delete t:tmp.16 >nil:
  40.  
  41. echo "Done"
  42.  
  43. lab Final
  44.